<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局</title>
    <link rel="stylesheet" href="./fonts/iconfont.css">
    <style>
        *{
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        ul{
            list-style: none;
        }
        a{
            font-size: 16px;
            color: black;
            text-decoration: none;
        }
        .header{
            display: flex;
            width: 100%;
            height: 60px;
            justify-content: center;
            align-items: center;
            background-color: aqua;
        }
        .main{
            flex: 1;
            display: flex;
            
        }
        .main-sidebar{
            flex-basis: 300px;
            background-color: aquamarine;
            order: -1;
            display: flex;
            justify-content: center;
            align-items: center;

        }
        .main-content{
            display: flex;
            flex-grow: 1;
            background-color: pink;
            justify-content: center;
            align-items: center;
        }
        html{
            height: 100%;
        }
        body{
            display: flex;
            flex-direction: column;
           min-height: 100%;
        }
        .tabbar-container{
            width: 100%;
            height: 60px;
            background-color: red;
        }
        .tabbar{
        display: flex;
        height: 100%;
        align-items: center;
     
        }
        .tabbar-item{
            flex: 1;
        }
        .ta-link{
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    </style>
</head>
<body>
    <header class="header">header</header>
    <div class="main">
        <div class="main-content">content</div>
        <div class="main-sidebar">sidebar</div>
    </div>
    <footer class="tabbar-container">
        <ul class="tabbar">
            <li class="tabbar-item tabbar-item-active">
                <a href="" class="ta-link"><i class="iconfont icon-QQ"></i>
                <span>QQ</span>
                </a>
            </li>
            <li class="tabbar-item">
                <a href="" class="ta-link"><i class="iconfont icon-xiangji"></i>
                <span>相机</span>
                </a>
            </li>
            <li class="tabbar-item">
                <a href="" class="ta-link"><i class="iconfont icon-zhiding"></i>
                <span>置顶</span>
                </a>
            </li>
            <li class="tabbar-item">
                <a href="" class="ta-link"><i class="iconfont icon-dayuhao"></i>
                <span>大于号</span>
                </a>
            </li>
            
        </ul>
    </footer>
</body>
</html>